package mylibrary.ehcache;

import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.Element;

public class Test {

	public static void main(String[] args) {
		
		CacheManager manager = CacheManager.create();
		
		CacheManager manager1 = new CacheManager();
		
		Cache cache = manager.getCache("gao");
		Element el = new Element("key", "value");
		cache.put(el);
		
		System.out.println(manager.getCache("gao").get("key"));
		
		System.out.println(manager.getCacheNames().length);
		
		
	}
}
